//
//  UIImage+Resize.m
//  QQ聊天
//
//  Created by song on 15/1/15.
//  Copyright (c) 2015年 song. All rights reserved.
//

#import "UIImage+Resize.h"

@implementation UIImage (Resize)

+(UIImage *)imageResizableWithName:(NSString *)name
{
    UIImage *normalimg = [UIImage imageNamed:name] ;
    
    CGFloat normalW = normalimg.size.width* 0.5;
    CGFloat normalH = normalimg.size.height* 0.5;
    return  [normalimg resizableImageWithCapInsets:UIEdgeInsetsMake(normalH, normalW, normalH, normalW)];
}

@end
